<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>日志管理</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" >
	function query(){
		var ajaxCallUrl  = <%=basePath %> + "log!query";
		alert(ajaxCallUrl);
		$.ajax({
	                //cache: true,
	                type: "POST",
	                url:ajaxCallUrl,
	                data:$('#dataForm').serialize(),// 你的formid
	                //async: false,
	                error: function(request) {
	                    alert("Connection error");
	                },
	                success: function(data) {
	                    //$("#commonLayout_appcreshi").parent().html(data);
	                   alert(data.text); 
	                }
	            });
	}
	
	</script>
  </head>
  
  <body>
    <fieldset title="查询条件">
    	<form action="log!query" method="post" id="dataForm">
    		<s:date name="logdate" id="logdate"/>
    		<select name="logtype">
    			<option value="">请选择</option>
				<option value="1">类型1</option>
				<option value="2">类型2</option>
				<option value="3">类型3</option>
				<option value="4">类型4</option>
    		</select>
    		<button id="submit" name="查询" onclick=""></button>
    	</form>
    </fieldset>
  </body>
</html>

